package a.f.g.a;

import a.c.t;
import a.f.dc;
import a.f.o;
import a.f.p;
import a.f.zc;

import java.util.Iterator;

public abstract class i
{
  protected e a;
  protected o c;
  public static boolean d;
  
  protected i(e parame, o paramo)
  {
    if (paramo == null) {
      throw new IllegalArgumentException("LayoutGraph must not be null");
    }
    if (parame == null) {
      throw new IllegalArgumentException("Layouter must not be null");
    }
    this.a = parame;
    this.c = paramo;
  }
  
  public static class b_
    extends i
  {
    public static int b;
    
    public b_(e parame, o paramo)
    {
      super(paramo);
    }
    
    public void a()
    {
      boolean bool = xb.r;
      int i = xb.q;
      Object localObject2;
      if (!bool) {
        if ((this.c instanceof p))
        {
          localObject2 = ((p)this.c).Q();
          localObject1 = ((p)this.c).R();
          localIterator = ((t)localObject2).a();
          if (bool) {
            break label83;
          }
          if (i == 0) {
            break label77;
          }
        }
      }
      Iterator localIterator = this.c.a();
      Object localObject1 = this.c;
      label77:
      label83:
      do
      {
        cb localcb;
        do
        {
          if (!localIterator.hasNext()) {
            break;
          }
          localObject2 = localIterator.next();
          localcb = this.a.a(localObject2);
        } while (localcb == null);
        zc localzc = ((dc)localObject1).d(localObject2);
        double d1 = localzc.d();
        double d2 = localzc.c();
        localzc.a(localcb.b() - d2 / 2.0D, localcb.c() - d1 / 2.0D);
      } while (i == 0);
    }
  }
  
  public static class a_
    extends i
  {
    public static boolean b;
    
    public a_(e parame, o paramo)
    {
      super(paramo);
    }
    
    public double a(double paramDouble1, double paramDouble2)
    {
      boolean bool = xb.r;
      int i = xb.q;
      if (!bool) {
        if ((this.c instanceof p))
        {
          t localt = ((p)this.c).Q();
          localObject1 = ((p)this.c).R();
          localIterator = localt.a();
          if (bool) {
            break label77;
          }
          if (i == 0) {
            break label83;
          }
        }
      }
      Iterator localIterator = this.c.a();
      label77:
      Object localObject1 = this.c;
      label83:
      double d1 = 0.0D;
      do
      {
        do
        {
          zc localzc;
          double d2;
          double d3;
          double d6;
          double d7;
          double d8;
          do
          {
            Object localObject2;
            cb localcb;
            do
            {
              if (!localIterator.hasNext()) {
                break;
              }
              localObject2 = localIterator.next();
              localcb = this.a.a(localObject2);
            } while (localcb == null);
            localzc = ((dc)localObject1).d(localObject2);
            d2 = localzc.a() + localzc.c() / 2.0D;
            d3 = localzc.b() + localzc.d() / 2.0D;
            double d4 = localcb.b();
            double d5 = localcb.c();
            d6 = d4 - d2;
            d7 = d5 - d3;
            d8 = Math.sqrt(d6 * d6 + d7 * d7);
          } while (d8 <= 1.5D);
          double d9 = Math.min(paramDouble1, d8 * paramDouble2);
          d1 = Math.max(d1, d9);
          double d10 = d2 + d9 * d6 / d8 - localzc.c() / 2.0D;
          if ((bool) || (i != 0)) {
            break label336;
          }
          double d11 = d3 + d9 * d7 / d8 - localzc.d() / 2.0D;
          localzc.a(d10, d11);
        } while (bool);
      } while (i == 0);
      label336:
      return d1;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.a.i

 * JD-Core Version:    0.7.0.1

 */